<div class="form-inline">
    <p>
        <input name="id" id="appendedInputButton" class="span1" type="text" placeholder="Número">&nbsp;
        <input name="busca" id="appendedInputButton" class="span3" type="text" placeholder="Nome do Shooter">&nbsp;
        <input name="data" id="appendedInputButton" class="span2" type="text" placeholder="Data" onfocus="showCalendarControl(this);">
        <input type="submit" name="btnbusca" value="Buscar" class="btn" >
    </p>
</div>

<table class="table table-striped table-bordered table-hover">

    <tr>
        <th width="80" height="40">A&ccedil;&otilde;es</th>
        <th width="90">Nº</th>
        <th>Striker</th>
        <th width="350">Type of Weapon</th>
        <th width="200">Target Code/DMPI</th>
        <th width="150">Release Time (UTC)</th>
        <th width="150">Hit on Target (UTC)</th>
    </tr>

    <?php
    $sql = "SELECT * FROM shotvalidaag 
    LEFT JOIN cliente ON cliente.cli_id=shotvalidaag.cli_id
    LEFT JOIN posto ON posto.pos_id=cliente.pos_id
    LEFT JOIN pais ON pais.pai_id=cliente.pai_id
    WHERE $onde ORDER BY shotvalidaag.sho_data DESC";
    $res = sql($sql);
    $i=0;
    while($linha = mysql_fetch_array($res)) {
    ?>

    <tr>
        <td height="40">
  
            <p><input name="excluir[]" type="checkbox" value="<?=$linha['sho_id'];?>"/><i class="icon-trash"></i> Excluir</p>
            <p><a href="?pag=shotvalidaag_alt&sho_id=<?=$linha['sho_id'];?>"><i class="icon-pencil"></i> Editar</a></p>        
        </td>
        <td><big><strong>REL #<?php echo $linha['sho_id'];?></strong></big></td>
        <td>
            <?php 
            echo "<p>{$linha['pai_nome']}</p>";
            echo "<p>{$linha['cli_code']} - {$linha['pos_nome']} {$linha['cli_nome']}</p>"; ?></td>
        <td><?php echo $linha['sho_weapon'];?></td>
        <td><?php echo $linha['sho_target'];?></td>
        <td><?php echo $linha['sho_release'];?></td>
        <td><?php echo $linha['sho_hit'];?></td>
    </tr>

    <?
    $i++;
    } 
    ?>
</table>